import request from '@/utils/request'
import { ProductPageQuery, ProductPageRes } from '@/model/product/ProductPage'
import { BasePageRes } from '@/model/base/Base'
/**
 * 分页查询商品
 * @param data
 * @returns
 */
export function page(data: ProductPageQuery): Promise<BasePageRes<ProductPageRes>> {
  return request.get<BasePageRes<ProductPageRes>>('/api/product/page', data)
}
